import { NullablePromise, DataList, addon } from "pao-aop";

/**
 *  设备
 */
export interface Device {

}
/**  设备 */
@addon('IDeviceService', '设备', '设备')
export class IDeviceService {
    /**
     * 获取 设备列表
     * @param condition 查询条件
     * @param page 页码
     * @param count 条数
     */
    get_device?(condition?: {}, page?: number, count?: number): NullablePromise<DataList<Device>> {
        return undefined;
    }
    get_device_all?(condition?: {}, page?: number, count?: number): NullablePromise<DataList<Device>> {
        return undefined;
    }
    get_device_look?(condition?: {}, page?: number, count?: number): NullablePromise<DataList<Device>> {
        return undefined;
    }
    /** 绑定设备 */
    update_device?(condition?: {}): NullablePromise<boolean> {
        return undefined;
    }
    /** 解除绑定设备 */
    delete_device?(dervice_id: string): NullablePromise<boolean> {
        return undefined;
    }
    /** 获取设备日志 */
    get_device_log?(condition?: {}, page?: number, count?: number): NullablePromise<DataList<any>> {
        return undefined;
    }
}